using Gameplay.PVE.Entity;

namespace Gameplay.PVE
{
    //没有a星寻路的寻路
    public class SimpleRoadPath : UnitRoadPath
    {
        public override void Init(UnitBase unit)
        {
            base.Init(unit);
            actionName = "Run";
            actionSpeed = 1f;
        }

        public override void Update()
        {
            base.Update();
            MoveToTargetPosition(unit.Data.targetPosition);
        }
    }
}